package cn.bj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bj.beans.Yxfw_man_rotate;
import cn.bj.dao.Yxfw_man_rotateMapper;

@Service
public class ManRotateService {
	@Autowired
	Yxfw_man_rotateMapper yxfw_man_rotateMapper;

	// 查询所有
	public List<Yxfw_man_rotate> selectAllCarRotate() {
		return yxfw_man_rotateMapper.selectByExample(null);
	}

	// 插入
	public int insertmanRotate(Yxfw_man_rotate manRotate) {
		return yxfw_man_rotateMapper.insert(manRotate);
	}

	// 删除
	public int deleteManRotate(Integer id) {
		return yxfw_man_rotateMapper.deleteByPrimaryKey(id);
	}

	// 查询单个
	public Yxfw_man_rotate selectById(Integer id) {
		return yxfw_man_rotateMapper.selectByPrimaryKey(id);
	}

	// 修改
	public int updateManR(Yxfw_man_rotate manR) {
		return yxfw_man_rotateMapper.updateByPrimaryKey(manR);
	}

}
